﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" xmlns:ee="http://schemas.microsoft.com/expression/2010/effects" xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:PersianCalendarControl="clr-namespace:PersianCalendarControl" x:Class="PersianCalendarControl.Controls.PersianDatePickerControl"
    mc:Ignorable="d"
    d:DesignHeight="25" d:DesignWidth="150">
	<UserControl.Resources>
		<Style x:Key="MiniCalendarButtonStyle" TargetType="TextBlock"/>
	</UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Background="White">
    	
        <Grid.ColumnDefinitions>
        	<ColumnDefinition Width="*" />
        	<ColumnDefinition Width="25" />            
        </Grid.ColumnDefinitions>
    	<Grid FlowDirection="LeftToRight">
    		<Grid.ColumnDefinitions>
    			<ColumnDefinition Width="0.472*"/>
    			<ColumnDefinition Width="0.26*"/>
    			<ColumnDefinition Width="0.268*"/>
    		</Grid.ColumnDefinitions>
    		<Rectangle Stroke="#FF646464" Grid.ColumnSpan="3">
    			<Rectangle.Fill>
    				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    					<GradientStop Color="#FFDADADA" Offset="0.535"/>
    					<GradientStop Color="White" Offset="1"/>
    					<GradientStop Color="#FFE1E1E1"/>
    					<GradientStop Color="#FFE2E2E2" Offset="0.533"/>
    				</LinearGradientBrush>
    			</Rectangle.Fill>
    		</Rectangle>
        
    		<TextBox Padding="0" x:Name="tbSelectedYear" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" FontSize="16" Margin="2,0" Background="{x:Null}" BorderBrush="{x:Null}" TabIndex="0" MaxLength="4" AcceptsReturn="True" />
    		<TextBlock Margin="-2,2,0,2" TextWrapping="Wrap" Text="/" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" FontSize="16" HorizontalAlignment="Left" Width="5" Grid.Column="1"/>
    		<TextBox Padding="0" x:Name="tbSelectedMonth" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" FontSize="16" Margin="2,0,0,0" Background="{x:Null}" BorderBrush="{x:Null}" HorizontalAlignment="Left" TabIndex="1" MaxLength="2" AcceptsReturn="True" Grid.Column="1" Width="28" />
    		<TextBlock Margin="-2,2,0,2" TextWrapping="Wrap" Text="/" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" FontSize="16" HorizontalAlignment="Left" Width="5" Grid.Column="2" d:LayoutOverrides="GridBox"/>
    		<TextBox Padding="0" x:Name="tbSelectedDay" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" FontSize="16" HorizontalAlignment="Left" Margin="2,0,0,0" Background="{x:Null}" BorderBrush="{x:Null}" TabIndex="2" MaxLength="2" AcceptsReturn="True" Grid.Column="2" Width="30" />
    	</Grid>
    	<PersianCalendarControl:MiniCalendarButton x:Name="btnPopup" Grid.Column="1" Height="Auto"/>
    </Grid>
</UserControl>
